package android.cs2340UDT;

public class Time {
	
	public int month;
	public int day;
	public int year;
	public int hour;
	public int minute;

	/*
	 * Constructor sets the time time as a month, day, year, hour, and minute
	 */
	public Time(int month, int day, int year, int hour, int minute){
		this.month = month;
		this.day = day;
		this.year = year;
		this.hour = hour;
		this.minute = minute;
	}
	
	/*
	 * Method returns the time in string format
	 */
	public String getTime(){
		String timeSet;
		timeSet = "Time" + month + " " + day + " " + year + " " + hour + " " + minute;
		return timeSet;
	}

	/*
	 * Method revises the month
	 * 
	 * @param month
	 */
	public void setMonth(int month){
		this.month = month;
	}
	
	/*
	 * Method revises the month
	 * 
	 * @param day
	 */
	public void setDay(int day){
		this.day = day;
	}
	
	/*
	 * Method revises the year
	 * 
	 * @param year
	 */
	public void setYear(int year){
		this.year = year;
	}
	
	/*
	 * Method revises the hour
	 * 
	 * @param hour
	 */
	public void setHour(int hour){
		this.hour = hour;
	}
	
	/*
	 * Method revises the minute
	 * 
	 * @param minute
	 */
	public void setMinute(int minute){
		this.minute = minute;
	}
}
